Fix lutron caseta occupancy sensors#71309
Conversation
|
Hey there @swails, mind taking a look at this pull request as it has been labeled with an integration ( |
swails
left a comment
There was a problem hiding this comment.
Well I had to cancel my original review as you already implemented the changes I was going to suggest 😆
|
They don't have a |
I was just about to post the same thing after reading though the diagnostics. |
|
So the unique ids here aren't actually unique if you have multiple bridges, but thats another problem |
This reverts commit 69d19dc.
|
I'm going to fix this for now and migrate the unique ids in 2022.6 |
| @@ -65,16 +85,6 @@ def unique_id(self): | |||
| """Return a unique identifier.""" | |||
| return f"occupancygroup_{self.device_id}" | |||
There was a problem hiding this comment.
This is not actually unique if you have multiple bridges. We need to prefix it with the bridge id as well since it is unique to the bridge.
There was a problem hiding this comment.
We can migrate them in 2022.6 though as its better to fix this now instead of adding risk
|
@chrisaljoudi Can you test with the latest push? |
|
I also uploaded it as a |
|
@bdraco the custom component is missing the added check in |
Thanks. I forgot to push the |
|
@chrisaljoudi Thanks for testing. I'm going to need to migrate the unique ids so they are actually unique in 2022.6. Do you mind if I ping you to test that PR in a few days? Since I don't actually have any of these I'm going to order up a |
|
@bdraco absolutely happy to! Have 3 bridges in use. |
|
This one is for the next patch release, right? (Asking as it's not tagged for the milestone...) |
* Fix lutron_caseta occupancy sensors * Fix lutron_caseta occupancy sensors * Make as service since its a group * merge * Revert "merge" This reverts commit 69d19dc. * model and type not present
Proposed change
Fix lutron caseta occupancy sensors
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: